package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author majiale
 * @email sunlightcs@gmail.com
 * @date 2024-03-31 20:39:02
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询为树形结构
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     *
     * 删除菜单
     * @param list
     */
    void removeMenuByIds(List<Long> list);

    /**
     *
     * 找到完整的路径
     * @param catelogId
     * @return
     */
    Long[] findCateLogPath(Long catelogId);

    /**
     * 级联更新
     * @param category
     */
    void updateCascade(CategoryEntity category);
}

